package com.rattsoftware.server;

/**
 * This class holds constants used in the OpenXdata.
 */
public class RattsConstants {

	/** Value representing a not yet set status. */
    public static final byte STATUS_NULL = -1;
    
    /** Value representing success of an action. */
    public static final byte STATUS_SUCCESS = 1;

    /** Value representing failure of an action. */
    public static final byte STATUS_FAILURE = 0;
    
	/** The text value for boolean true. */
	public static final String TRUE_TEXT_VALUE = "true";
	
	/** The content disposition http header. */
	public static final String HTTP_HEADER_CONTENT_DISPOSITION = "Content-Disposition";
	
	/** The content type http header. */
	public static final String HTTP_HEADER_CONTENT_TYPE = "Content-Type";
	
	/** The text/html http content type. */
	public static final String HTTP_HEADER_CONTENT_TYPE_TEXT_HTML = "text/html; charset=utf-8";
	
	/** The application/xhtml+xml http content type. */
	public static final String HTTP_HEADER_CONTENT_TYPE_XML = "text/xml; charset=utf-8"; //"application/xhtml+xml; charset=utf-8";
	
	/** The pdf http content type header. */
	public static final String HTTP_HEADER_CONTENT_TYPE_PDF = "application/pdf"; //"application/x-pdf";
	
	public static final String HTTP_HEADER_CONTENT_DISPOSITION_VALUE = "attachment; filename=\"";

	/** The name of the setting for the dislay date format. */
	public static final String SETTING_NAME_DISPLAY_DATE_FORMAT = "displayDateFormat";
	
	/** The name of the setting for the displat date and time format. */
	public static final String SETTING_NAME_DISPLAY_DATETIME_FORMAT = "displayDateTimeFormat";
	
	/** The name of the setting for the display time format. */
	public static final String SETTING_NAME_DISPLAY_TIME_FORMAT = "displayTimeFormat";
	
	/** The name of the description template attribute. */
	public static final String ATTRIBUTE_NAME_DESCRIPTION_TEMPLATE = "description-template";
	
	/** The action request parameter. */
	public static final String REQUEST_PARAMETER_ACTION = "action";
	
	/** The http request paramer for user name. */
	public static final String REQUEST_PARAM_USERNAME = "uname";
	
	/** The http request parameter for user password. */
	public static final String REQUEST_PARAM_PASSWORD = "pw";
	
	/** The http request parameter for the locale. */
	public static final String REQUEST_PARAM_LOCALE = "locale";

	/** The default display date format. */
	public static final String DEFAULT_DATE_DISPLAY_FORMAT = "dd-MM-yyyy";
	
	/** The default display date format. */
	public static final String DEFAULT_DATETIME_DISPLAY_FORMAT = "dd-MM-yyyy hh:mm:ss a";
	
	/** The default display date format. */
	public static final String DEFAULT_TIME_DISPLAY_FORMAT = "hh:mm:ss a";
	
	/** The Default password for administrator that ships with the system.*/
	public static final String DEFAULT_ADMINISTRATOR_PASSWORD = "7357bec928a1af86415f7b8c11245296ec1779d";
}
